import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Dome9 {
    public static void main(String[] args) {
        //对文件进行写操作
        try(Writer writer = new FileWriter("./test.txt")) {
            writer.write("你好世界");
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
}
